/*
 * @Author: 花香蝶自来 1026583651@qq.com
 * @Date: 2024-07-23 11:59:05
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-08-08 16:05:27
 * @FilePath: /energy_capacity_web/src/api/company/empInfo.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function pageList(query) {
	return request({
		url: '/company/empInfo/findAllEmpInfo',
		method: 'post',
		data: query
	})
}
// /company/empInfo/get/{id}
// id查详情
export function getInfo(query) {
	return request({
		url: `/company/empInfo/get/${query.id}`,
		method: 'get',
	})
}
export function add(data) {
	return request({
		url: '/company/empInfo/create',
		method: 'post',
		data: data
	})
}

export function update(data) {
	return request({
		url: '/company/empInfo/update',
		method: 'post',
		data: data
	})
}

export function remove(uuid) {
	return request({
		url: '/company/empInfo/delete',
		method: 'post',
		data: uuid
	})
}